package com.hspedu.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class MonsterController {
    @GetMapping("/monster")
    public String getMonster(){
        return "GET-查询妖怪";
    }

    @PostMapping("/monster")
    public String saveMonster(){
        return "POST-保存妖怪";
    }
    @DeleteMapping("/monster")
    public String deleteMonster(){
        return "Delete-删除妖怪";
    }

    @PutMapping("/monster")
    public String putMonster(){
        return "Put-修改妖怪";
    }
    @RequestMapping("/go")
    public String go(){
        return "hello";
    }


}
